//
//  ShopCarView.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/19.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "ShopCarView.h"

@implementation ShopCarView


-(id)initWithInSuperView:(UIView *)aSuperView{
    if (self = [super initWithInSuperView:aSuperView]) {
//        self.backgroundColor = kRandomColor;
        GLGWButton * but = [[GLGWButton alloc] initInSuperView:self];
        but.backgroundColor = [UIColor whiteColor];
        but.layer.cornerRadius = 35.0;
        but.layer.shadowColor = [UIColor colorWithHexString:@"#000000"].CGColor;//shadowColor阴影颜色
        but.layer.shadowOffset = CGSizeMake(0, 0);//shadowOffset阴影偏移，默认(0, -3),这个跟shadowRadius配合使用
        but.layer.shadowOpacity = 0.15;////阴影透明度，默认0
        but.layer.shadowRadius = 5.0;////阴影半径，默认3
        [but mas_makeConstraints:^(MASConstraintMaker *make) {
            make.center.equalTo(self);
            make.width.height.equalTo(@70);
        }];
    }
    return self;
}

@end
